import request from '@/utils/request/index.js'
export default {
	getCurrentUser(data){
		return request.request({
			url:"/h5/login/getCurrentUser",
			method: 'GET'
		})
	},

	getCheckCode(data){
		return request.request({
			url:"/WXMini/getCheckCode",
			data: data
		})
	},

	login(backUrl, data){
		return request.request({
			url:"/h5/login/loginByVerificationCode?backUrl="+backUrl,
			data: data
		})
	},

	getPhoneNumber(data){
		return request.request({
			url:"/WXMini/getPhoneNumber",
			data: data
		})
	},

	/**
	 * 获取系统参数配置
	 */
	getSystemConfig(){
		return request.request({
			url:"/sys/config/getConfig",
			method: 'GET'
		})
	},

	loginByPassword(phone, password,appletSourceUserId){
		return request.request({
			url:"/h5/login/loginByPassword",
			method: 'POST',
			data: {
				phone : phone,
				password : password,
				appletSourceUserId:appletSourceUserId
			}
		})
	}



}
